<template>
  <div class="mapContent" :style="{width:'100%',height:tableHeight+'px'}" v-loading="loading">
    <div class="search">
      <el-date-picker
      v-model="searchDate"
      type="date"
      placeholder="选择日期">
    </el-date-picker>
    &nbsp;
    <el-button type="primary" ref='upDay'  @click="upDay" v-if="isUP">上一天</el-button>
    <el-button type="primary" ref='upDay'  @click="curDay" v-if="isCur">当天</el-button>
    <el-button type="primary" ref='nextDay' @click="nextDay"  v-if="isNext">下一天</el-button>
    </div>
    <div id="chart" ref='chart'>
    </div>
   <el-dialog :title="dialogGanT.title" 
              :visible.sync="dialogGanT.isvisible"
              :width="dialogGanT.width"
              :top="dialogGanT.top"
              :modal="true"
              :close-on-click-modal	="false"
              :append-to-body="true"
              :before-close="closeCover"
              :style="dialogRight" v-dialogDrag  >
    <div :style="dialogHeight" id="coverGant" ref="coverGant" v-if="vIfBooleans.isShowGant"></div>
    <div :style="dialogHeight" id="coverTable" ref="coverTable" v-if="vIfBooleans.isShowTable" v-loading="dialogGanT.tableBootomLoading" >
        <!-- 查询页面 -->
             <h1>{{form.title}}</h1>
         <el-form :model="form">
          <el-form-item> 
            <el-select v-model="form.region" placeholder="请选择类型" ref="coverTableSelect" class="select_type_class" @change="selectEventFun" v-if="vIfBooleans.isShowSelected">
                <el-option :label="selector.label.currentYearComed" value="THIS_YEAR_COMED"></el-option>
                <el-option :label="selector.label.zhongc" value="ZC_PROVIDER"></el-option>
                <el-option :label="selector.label.fusu" value="FS_PROVIDER"></el-option>
                <el-option :label="selector.label.currentYearAddP" value="NEW_PROVIDER"></el-option>
                <el-option :label="selector.label.notLianJ" value="NOT_LINK_PROVIDER"></el-option>
                <el-option :label="selector.label.currentYearNotComed" value="THIS_YEAR_NOT_COMED"></el-option>
                <el-option :label="selector.label.xiuMian" value="XM_PROVIDER"></el-option>
                <el-option :label="selector.label.liuShi" value="LS_PROVIDER"></el-option>
                <el-option :label="selector.label.lianJieXiuMian" value="LINKED_XM_PROVIDER"></el-option>
                <el-option :label="selector.label.notLianJieXiuMian" value="NOT_LINKED_XM_PROVIDER"></el-option>
                <el-option :label="selector.label.allProvider" value="ALL_PROVIDER"></el-option>
            </el-select>
        </el-form-item>
        </el-form>
        <!-- table top -->
            <table id ="thisTown" data-toggle="table" class="table table-striped">
            </table>
             <table id = "table" data-toggle="table" class="table table-striped">
                
            </table>
        <!-- table bottom -->
    </div>
    <el-dialog
              :title="dialogGanTinner.title" 
              :visible.sync="dialogGanTinner.isvisible"
              :width="dialogGanTinner.width"
              :top="dialogGanTinner.top"
              :modal="true"
              :close-on-click-modal	="false"
              :append-to-body="true"
               v-dialogDrag>
              <!-- 5步链接弹窗 -->
              <div id="5Link" ref="5Link" v-if="vIfBooleans.isShow5Link">

              </div>
               <!-- 临床反应链接步链接弹窗 -->
              <div id="5Link" ref="5Link" v-if="vIfBooleans.isShowLcblfy">
                  
              </div>        
     </el-dialog>
  </el-dialog>
  </div>
</template>
<script>
import analysisHttp from 'plugins/axios/analysisHttp.js';
import '../../../assets/styles/bootstrap-table.css';
let obj = {
  components:{
  },
  data(){
    return {
      isUP:true,
      isNext:false,
      isCur:false,
      districtLoading:0,
      blist:[],
      bmap:null,
      myChart:null,
      myChartGanT:null,
      isVisibleOut:false,
      legendSelect:true,
      minuteTopTable:0,
      allPulpTodayVillage:{},
    //   后15类数据存储变量定义
      xiuMian:{},           //休眠浆员
      fusu:{},              //复苏浆员
      allProvider:{},       //所有浆员
      currentYearComed:{},  //今年已进站
      currentYearAddP:{},   //今年新浆员
      zhongc:{},            //忠诚浆员
      currentYearNotComed:{},//今年未进站
      liuShi:{},             //流失浆员
      notLianJieXiuMian:{},  //未链接休眠的浆员
      notLianJ:{},           //未被链接的浆员
      lianJieXiuMian:{},      //已链接休眠的浆员
    //   后15类数据存储变量定义
      selector:{
         label:{
             xiuMian:null,
             fusu:null,
             allProvider:null,
             currentYearComed:null,
             currentYearAddP:null,
             zhongc:null,
             currentYearNotComed:null,
             liuShi:null,
             notLianJieXiuMian:null,
             notLianJ:null,
             lianJieXiuMian:null
         }
      },
      tableAdd:null,
      roundTable:null,
      tablebuttonMsg:null,
      searchDate: new Date(),
      currentDate:getNowFormatDate(),
      allTodayPeople:1,
      loading:false,
      newPeople :1,
      villageName:null,
      form:{
          region:null,
          title:'数据加载中...',
      },
      dialogGanTinner:{
        title:'默认标题',
        isvisible:false,
        fullscreen:false,
        modal:false,
        modalappendtobody:true,
        top:'7.5vh',
        width:document.documentElement.clientWidth - 215+ 'px'
      },
        dialogGanT:{
        title:'默认标题',
        isvisible:false,
        fullscreen:false,
        modal:false,
        tableBootomLoading:false,
        modalappendtobody:true,
        top:'7.5vh',
        width:document.documentElement.clientWidth - 215+ 'px'
      },
      vIfBooleans:{
          isShowGant:false,
          isShowTable:false,
          isShowSetImport:false,
          isShowSelected:false,
          isShow5Link:false,
          isShowLcblfy:false
      },
      dialogHeight: {
                marginTop:- 10 +'px',
                backgroundColor:'white',
                height: document.documentElement.clientHeight - 185+ 'px',
                overflowY: 'auto',
      },
      dialogRight:{
            overflowY: 'auto',
      },
      styleJson:[/**地图自定义样式 */
        {
          'featureType': 'water',
          'elementType': 'all',
          'stylers': {
              'color': '#d1d1d1'
          }
        }, {
          'featureType': 'land',
          'elementType': 'all',
          'stylers': {
              'color': '#f3f3f3'
          }
        },
        {
          'featureType': 'railway',
          'elementType': 'all',
          'stylers': {
              'visibility': 'off'
          }
        }, {
          'featureType': 'highway',
          'elementType': 'all',
          'stylers': {
              'color': '#fdfdfd'
          }
        }, {
          'featureType': 'highway',
          'elementType': 'labels',
          'stylers': {
              'visibility': 'off'
          }
        }, {
          'featureType': 'arterial',
          'elementType': 'geometry',
          'stylers': {
              'color': '#fefefe'
          }
        }, {
          'featureType': 'arterial',
          'elementType': 'geometry.fill',
          'stylers': {
              'color': '#fefefe'
          }
        }, {
          'featureType': 'poi',
          'elementType': 'all',
          'stylers': {
              'visibility': 'off'
          }
        }, {
          'featureType': 'green',
          'elementType': 'all',
          'stylers': {
              'visibility': 'off'
          }
        }, {
          'featureType': 'subway',
          'elementType': 'all',
          'stylers': {
              'visibility': 'off'
          }
        }, {
          'featureType': 'manmade',
          'elementType': 'all',
          'stylers': {
              'color': '#d1d1d1'
          }
        }, {
          'featureType': 'local',
          'elementType': 'all',
          'stylers': {
              'color': '#d1d1d1'
          }
        }, {
          'featureType': 'arterial',
          'elementType': 'labels',
          'stylers': {
              'visibility': 'off'
          }
        }, {
          'featureType': 'boundary',
          'elementType': 'all',
          'stylers': {
              'color': '#fefefe'
          }
        }, {
          'featureType': 'building',
          'elementType': 'all',
          'stylers': {
              'color': '#d1d1d1'
          }
        }, {
          'featureType': 'label',
          'elementType': 'labels.text.fill',
          'stylers': {
              'color': '#FFF'
          }
        }
      ]
    }
  },
  watch:{
   searchDate(newData,oldDate){
     let self = this;
     let dateNew = self.timestampToTime(newData,'yyyy-mm-dd');
     if(compareDate(dateNew,self.currentDate)){
               self.isNext = false;
               self.isUP = true;
     }else{
               self.isNext = true;
               self.isUP = true;
               self.isCur = true;

     }
     self.getAllPNumGroupByVillageByDate();
   }
  },
  computed:{
    tableHeight(){
      return this.$store.state.clientHeight-90;
    }
  },
  mounted(){
    let self = this;
    //初始化地图
    self.myChart = this.$echarts.init(self.$refs.chart);
    self.getDataForTenFiveMap();     
  },
  created(){
    window.self = this;    
  },
  methods:{
      //后15类select下拉类型查询change调用函数
    selectEventFun(){
        let self = this;
         //获取当天村落所有人的数据
         self.dialogGanT.tableBootomLoading = true;
         self.closeLoading();
         self.allPulpTodayvillageAjax();
         self.TableChartAjax(self.villageName, "all", self.form.region);
    },
    // 获取后15类地图信息数据（除去前三类需要通过时间查询 详情查看 getAllPNumGroupByVillageByDate
    getDataForTenFiveMap(){
      let self = this;
        self.loading = true;
        self.closeLoading();
        analysisHttp.getAllPNumGroupByVillageByGroup().then(res=>{
        self.xiuMian = res.content.xiuMian.analysisDetail.length>0?self.getFormaterDate( res.content.xiuMian.analysisDetail):[]; 
        self.fusu = res.content.fusu.analysisDetail.length>0?self.getFormaterDate( res.content.fusu.analysisDetail):[]; 
        self.allProvider = res.content.allProvider.analysisDetail.length>0?self.getFormaterDate( res.content.allProvider.analysisDetail):[]; 
        self.currentYearComed = res.content.currentYearComed.analysisDetail.length>0?self.getFormaterDate( res.content.currentYearComed.analysisDetail):[];  
        self.currentYearAddP = res.content.currentYearAddP.analysisDetail.length>0?self.getFormaterDate( res.content.currentYearAddP.analysisDetail):[]; 
        self.zhongc = res.content.zhongc.analysisDetail.length>0?self.getFormaterDate( res.content.zhongc.analysisDetail):[];
        self.currentYearNotComed = res.content.currentYearNotComed.analysisDetail.length>0?self.getFormaterDate( res.content.currentYearNotComed.analysisDetail):[];  
        self.liuShi = res.content.liuShi.analysisDetail.length>0?self.getFormaterDate( res.content.liuShi.analysisDetail):[];
        self.notLianJieXiuMian = res.content.notLianJieXiuMian.analysisDetail.length>0?self.getFormaterDate( res.content.notLianJieXiuMian.analysisDetail):[];
        self.notLianJ = res.content.notLianJ.analysisDetail.length>0?self.getFormaterDate( res.content.notLianJ.analysisDetail):[];
        self.lianJieXiuMian = res.content.lianJieXiuMian.analysisDetail.length>0?self.getFormaterDate( res.content.lianJieXiuMian.analysisDetail):[];
        self.xiuMian.analProCount = res.content.xiuMian.analProCount;
        self.fusu.analProCount = res.content.fusu.analProCount;
        self.allProvider.analProCount = res.content.allProvider.analProCount;
        self.currentYearComed.analProCount = res.content.currentYearComed.analProCount;
        self.currentYearAddP.analProCount = res.content.currentYearAddP.analProCount;
        self.zhongc.analProCount = res.content.zhongc.analProCount;
        self.currentYearNotComed.analProCount = res.content.currentYearNotComed.analProCount;
        self.liuShi.analProCount = res.content.liuShi.analProCount;
        self.notLianJieXiuMian.analProCount = res.content.notLianJieXiuMian.analProCount;
        self.notLianJ.analProCount = res.content.notLianJ.analProCount;
        self.lianJieXiuMian.analProCount = res.content.lianJieXiuMian.analProCount;
        self.getAllPNumGroupByVillageByDate();

       }); 
    },
    upDay(){
             self.searchDate = getUpAndNextDayByType(self.searchDate,1)
    },
    nextDay(){
             self.searchDate = getUpAndNextDayByType(self.searchDate,0)    
    },
    curDay(){
            self.searchDate = new Date();
    },
    getFormaterDate(data){
      let newDate=[];
      data.forEach(item=>{
        newDate.push({
          name:item.splitAddress,
          value:[item.jd,item.wd,item.providerNums],
          villageColligate:item.villageColligate
        })
      })
      return newDate;
    },
    onClose(){
      window.isvisible = true;
    },
  
    getAllPNumGroupByVillageByDate(){
      let self = this;
      // self.myChart.on('legendselectchanged',function(params){
      // });
      let option={
         animation: true,
         bmap: {
            zoom:10,
            roam: true,
            enableMapClick: false,
            mapStyle:{
                  styleJson: self.styleJson
              }
          },
          visualMap: {
            show: false,
            top: 'top',
            min: 0,
            max: 2,
            minZoom:1,
            maxZoom:2,
            seriesIndex: 0,
            calculable: true,
            inRange: {
              color: ['blue', 'blue', 'green', 'yellow', 'red']
            }
          }
      };
      let data =self.timestampToTime(self.searchDate,'yy-mm-dd');
       analysisHttp.getJzJwd().then(result=>{
         option.bmap.center = [result.content.jzJd,result.content.jzWd];
         analysisHttp.getAllPNumGroupByVillageByDate({date:data}).then(res=>{
           let newToday = res.content.todayCreateProvider.analysisDetail.length>0?self.getFormaterDate(res.content.todayCreateProvider.analysisDetail):[],  //新浆员
           positiveToday=res.content.todayJijiProvider.analysisDetail.length>0?self.getFormaterDate(res.content.todayJijiProvider.analysisDetail):[],       //积极浆员数据
           allToday=res.content.todayAllProvider.analysisDetail.length>0?self.getFormaterDate(res.content.todayAllProvider.analysisDetail):[];              //当天所有浆员
           option.legend = (()=>{
              var legdata = [
                  {
                    top: 56,
                    data: ["新浆员", 
                           "积极浆员", 
                           "当天所有浆员",
                           "所有浆员"
                           ]
                  },
                  {
                    top: 28,
                    data: [
                           "忠诚浆员",
                           "复苏浆员",
                           "今年新浆员",
                           "休眠浆员",
                           "流失浆员"
                           ]
                  },
                  {
                    top: 0,
                    data: [
                           "已链接休眠的浆员",
                           "未被链接浆员",
                           "今年已进站",
                           "今年未进站",
                           "未链接休眠的浆员"
                           ]
                  }
              ], 
              data = [];
              legdata.forEach(item=>{
                data.push({
                  right: 0,
                  top: item.top,
                  selected:{
                        //将初始化地图时不需要渲染的列表项关闭 此处代码遍历设置有重复
                        "所有浆员": false,
                        "忠诚浆员": false,
                        "今年新浆员": false,
                        "休眠浆员": false,
                        "复苏浆员": false,
                        "流失浆员": false,
                        "未链接休眠的浆员": false,
                        "今年未进站": false,
                        "今年已进站": false,
                        "未被链接浆员": false,
                        "已链接休眠的浆员": false                  
                        },
                  borderRadius: [8, 0, 0, 8],
                  backgroundColor: "rgba(75,75,75,.7)",
                  textStyle: {
                      color: "#FFF",
                      fontWeight: "bold",
                      width:30
                  },
                  itemWidth: 20,
                  itemHeight: 18,
                  itemGap: 7,
                  pageIconColor: "#FFF",
                  pageIconInactiveColor: "#FFF",
                  pageTextStyle: {
                      color: "#FFF"
                  },
                  z: 10,
                  data: item.data,
                  formatter: function (name) {
                    switch(name){
                      case '新浆员':
                        return  name + '('+res.content.todayCreateProvider.analProCount+')'
                        break;
                      case '积极浆员':
                        return  name + '('+res.content.todayJijiProvider.analProCount+')'
                        break;
                      case '当天所有浆员':
                        return  name + '('+res.content.todayAllProvider.analProCount+')'
                        break;
                      case '所有浆员':
                        return  name + '('+self.allProvider.analProCount+')'
                        break;
                      case '忠诚浆员':
                        return  name + '('+self.zhongc.analProCount+')'
                        break;
                      case '复苏浆员':
                        return  name + '('+self.fusu.analProCount+')'
                        break;
                      case '今年新浆员':
                        return  name + '('+self.currentYearAddP.analProCount+')'
                        break;
                      case '休眠浆员':
                        return  name + '('+self.xiuMian.analProCount+')'
                        break;
                      case '流失浆员':
                        return  name + '('+self.liuShi.analProCount+')'
                        break;
                      case '已链接休眠的浆员':
                        return  name + '('+self.lianJieXiuMian.analProCount+')'
                        break;
                      case '未被链接浆员':
                        return  name + '('+self.notLianJ.analProCount+')'
                        break;
                      case '今年已进站':
                        return  name + '('+self.currentYearComed.analProCount+')'
                        break;
                      case '今年未进站':
                        return  name + '('+self.currentYearNotComed.analProCount+')'
                        break;
                      case '未链接休眠的浆员':
                        return  name + '('+self.notLianJieXiuMian.analProCount+')'
                        break;
                    }
                  }
                })
              })
              return data
            })();
           option.tooltip =(()=>{
            var tooltip = [];
             var data =[{
                      }];
              tooltip.push({
                      padding: 10,
                      backgroundColor: "#F6F6F6",
                      borderWidth: 1,
                      borderColor: "rgba(0,0,0,.3)",
                      confine: true,
                      enterable: true,
                      transitionDuration: 0,
                      textStyle: {
                          color: "#333"
                      },
                      extraCssText: 'box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.3);',
                      position: function (pos, params, dom, rect, size) {
                          return [pos[0], pos[1]];
                      },
                      formatter: function (params,ticket, callback) {
                        var html;
                      self.minuteTopTable = params.data.villageColligate;
                        if (params.seriesIndex > 3 && params.seriesIndex < 18) {
                    var villageColligate = params.data.villageColligate;
                    var tableHtml = '<table id="tooltipTable" cellpadding="0" cellspacing="0" style="width:600px;height: 240px;table-layout:fixed;">' +
                        '<thead>' +
                        '<tr>' +
                        '<th style="width:5%;text-align:center;">编号</th>' +
                        '<th style="width:45%;text-align:center;">浆员类型</th>' +
                        '<th style="width:12%;text-align:center;">人数</th>' +
                        '<th style="width:12%;text-align:center;">同期浆量</th>' +
                        '<th style="width:12%;text-align:center;">当期浆量</th>' +
                        '<th style="width:14%;text-align:center;">去年全年浆量</th>' +
                        '</tr>' +
                        '</thead>' +
                        '<tbody>' +
                        '<tr>' +
                        '<td style="width:5%;"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("THIS_YEAR_COMED") + '\')">A</a></td>' +
                        '<td style="width:45%;">今年已进站浆员</td>' +
                        '<td style="width:12%;">' + villageColligate.currentTimePNum + '</td>' +
                        '<td style="width:12%;">' + villageColligate.lastTimeCollNum + '</td>' +
                        '<td style="width:12%;">' + villageColligate.currentTimeCollNum + '</td>' +
                        '<td style="width:14%;">' + villageColligate.lastYearCollNum + '</td>' +
                        '</tr>' +
                        '<tr>' +
                        '<td style="width:5%;"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("NEW_PROVIDER") + '\')">A1</a></td>' +
                        '<td style="width:45%;">今年新增浆员</td>' +
                        '<td style="width:12%;">' + villageColligate.currentTimeAddPNum + '</td>' +
                        '<td style="width:12%;">' + villageColligate.lastTimeAddCollNum + '</td>' +
                        '<td style="width:12%;">' + villageColligate.currentTimeAddCollNum + '</td>' +
                        '<td style="width:14%;"></td>' +
                        '</tr>' +
                        '<tr>' +
                        '<td style="width:5%;"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("FS_PROVIDER") + '\')">A2</a></td>' +
                        '<td style="width:45%;">今年复苏浆员（去年没来，今年来）</td>' +
                        '<td style="width:12%;">' + villageColligate.currentTimeFuSuPNum + '</td>' +
                        '<td style="width:12%;"></td>' +
                        '<td style="width:12%;">' + villageColligate.currentTimeFuSuCollNum + '</td>' +
                        '<td style="width:14%;"></td>' +
                        '</tr>' +
                        '<tr>' +
                        '<td style="width:5%;"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("ZC_PROVIDER") + '\')">A3</a></td>' +
                        '<td style="width:45%;">忠诚浆员（去年今年都来过）</td>' +
                        '<td style="width:12%;">' + villageColligate.currentTimeZCPNum + '</td>' +
                        '<td style="width:12%;">' + villageColligate.lastTimeZCCollNum + '</td>' +
                        '<td style="width:12%;">' + villageColligate.currentTimeZCCollNum + '</td>' +
                        '<td style="width:14%;">' + villageColligate.lastYearZCCollNum + '</td>' +
                        '</tr>' +
                        '<tr>' +
                        '<td style="width:5%"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("NOT_LINK_PROVIDER") + '\')">A4</a></td>' +
                        '<td style="width:45%">进站未被链接浆员</td>' +
                        '<td style="width:12%">' + villageColligate.comedNotConnPNum + '</td>' +
                        '<td style="width:12%">' + villageColligate.comedNotConnLastTimeCollNum + '</td>' +
                        '<td style="width:12%">' + villageColligate.comedNotConnThisTimeCollNum + '</td>' +
                        '<td style="width:14%">' + villageColligate.comedNotConnLastYearCollNum + '</td>' +
                        '</tr>' +
                        '<tr>' +
                        '<td style="width:5%"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("THIS_YEAR_NOT_COMED") + '\')">B</a></td>' +
                        '<td style="width:45%">今年未进站浆员</td>' +
                        '<td style="width:12%">' + villageColligate.currentTimeNotComedPNum + '</td>' +
                        '<td style="width:12%"></td>' +
                        '<td style="width:12%"></td>' +
                        '<td style="width:14%">' + villageColligate.currentTimeNotComedPLastYearCollNum + '</td>' +
                        '</tr>' +
                        '<tr>' +
                        '<td style="width:5%"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("XM_PROVIDER") + '\')">B1</a></td>' +
                        '<td style="width:45%">休眠浆员（去年来，今年没来）</td>' +
                        '<td style="width:12%">' + villageColligate.xiuMianPNum + '</td>' +
                        '<td style="width:12%">' + villageColligate.lastTimeXiuMianCollNum + '</td>' +
                        '<td style="width:12%"></td>' +
                        '<td style="width:14%">' + villageColligate.lastYearXiuMianCollNum + '</td>' +
                        '</tr>' +
                        '<tr>' +
                        '<td style="width:5%"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("LS_PROVIDER") + '\')">B2</a></td>' +
                        '<td style="width:45%">流失浆员（去年、今年都没来）</td>' +
                        '<td style="width:12%">' + villageColligate.liuShiPNum + '</td>' +
                        '<td style="width:12%"></td>' +
                        '<td style="width:12%"></td>' +
                        '<td style="width:14%"></td>' +
                        '</tr>' +
                        '<tr>' +
                        '<td style="width:5%"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("LINKED_XM_PROVIDER") + '\')">B1.1</a></td>' +
                        '<td style="width:45%">已链接休眠的浆员</td>' +
                        '<td style="width:12%">' + villageColligate.connXMPNum + '</td>' +
                        '<td style="width:12%">' + villageColligate.lastTimeConnXMCollNum + '</td>' +
                        '<td style="width:12%"></td>' +
                        '<td style="width:14%"></td>' +
                        '</tr>' +
                        '<tr>' +
                        '<td style="width:5%"><a href="javascript:void(0);" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\' ,\'' + ("NOT_LINKED_XM_PROVIDER") + '\')">B1.2</a></td>' +
                        '<td style="width:45%">未链接休眠的浆员</td>' +
                        '<td style="width:12%">' + villageColligate.notConnXMPNum + '</td>' +
                        '<td style="width:12%">' + villageColligate.lastTimeNotConnXMCollNum + '</td>' +
                        '<td style="width:12%"></td>' +
                        '<td style="width:14%"></td>' +
                        '</tr>' +
                        '</tbody>' +
                        '</table>';
                    }
                    switch (params.seriesIndex) {
                            
                        case 0://0 表示为中心聚集点 新版页面不做展示操作
                            // html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '当天人数：' + (self.allTodayPeople + self.newPeople) + '人</p>' +
                            //     '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + "" + '\',\'' + ("all") + '\',\'' + ("") + '\' )">今天所有村落浆员统计轮次表</p>';
                            // return html;
                            return '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '</p>';
                            break;
                        case 1:
                            html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                            '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverGant( \'' + params.name + '\' , \'' + ("new") + '\')" >今天新浆员统计甘特图</p>';
                            return html;
                            break;
                        case 2:
                            html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverGant( \'' + params.name + '\',\'' + ("jj") + '\' )" >今天积极浆员统计甘特图</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("today") + '\',\'' + ("jj") + '\')">今天积极浆员统计轮次表</p>';
                            return html;
                            break;
                        case 3:
                            html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverGant( \'' + params.name + '\',\'' + ("old") + '\' )" >今天所有浆员统计甘特图</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("today") + '\',\'' + ("") + '\')">今天所有浆员统计轮次表</p>';
                            return html;
                            break;
                        case 4:
                            html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor" onclick="OpenCoverTable( \'' + params.name + '\' , \'' + ("all") + '\',\'' + ("") + '\')" >所有浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 5:
                            html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("ZC_PROVIDER") + '\' )">忠诚浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 6:
                            html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("FS_PROVIDER") + '\' )">复苏浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 7:
                            html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("NEW_PROVIDER") + '\' )">今年新浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 8:
                            html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("XM_PROVIDER") + '\' )">休眠浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 9:
                            html = '<p style="font-weight: bold; font-size: 0.8rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("LS_PROVIDER") + '\' )">流失浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 10:
                            html = '<p style="font-weight: bold; font-size: 1.5rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                            '<p class="cursor" style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("LINKED_XM_PROVIDER") + '\' )">已链接休眠的浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 11:
                            html = '<p style="font-weight: bold; font-size: 1.5rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("NOT_LINK_PROVIDER") + '\' )">未链接浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 12:
                            html = '<p style="font-weight: bold; font-size: 1.5rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor"  style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("THIS_YEAR_COMED") + '\' )">今年已进站浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 13:
                            html = '<p style="font-weight: bold; font-size: 1.5rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor" style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("THIS_YEAR_NOT_COMED") + '\' )">今年未进站浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                        case 14:
                            html = '<p style="font-weight: bold; font-size: 1.5rem;margin-bottom: 0;">' + params.name + '：' + params.value[2] + '人</p>' +
                                '<p class="cursor" style="margin-bottom: 0;" onclick="OpenCoverTable(\'' + params.name + '\',\'' + ("all") + '\',\'' + ("NOT_LINKED_XM_PROVIDER") + '\' )">未链接休眠的浆员统计轮次表</p>';
                            return html + tableHtml;
                            break;
                                }
                        }

                 });
               return tooltip;
            })()
           option.toolbox =(()=>{})()
           option.series = (()=>{
             var series = [];
             var data=[{
                    name: result.content.jzName,
                    data: [{name: result.content.jzName, value: [result.content.jzJd,result.content.jzWd]}],
                    symbol: 'path://M512.0266 906.0321c0 0-423.7476-234.24-423.552-522.368 0.128-188.032 194.816-210.432 194.816-210.432 31.616 0.896 135.168 6.144 229.035 125.696 0 0 74.069-123.6572 210.261-125.7001s209.3507 118.698 209.92 208.9001C933.2746 503.8561 824.9866 750.7681 512.0266 906.0321z',
                    symbolSize: 35,
                    shadowColor: "rgba(140,40,73,.5)",
                    z: 0,
                    color: '#FF2987'
                },
                {
                    name: "新浆员",
                    data: newToday,
                    symbol: 'path://M669.165373 714.428272c111.777561-57.260787 188.614011-173.364263 188.614012-307.295631 0-190.438575-154.985522-345.347305-345.511127-345.347305S166.757131 216.693042 166.757131 407.132641c0 135.805078 79.057258 253.223223 193.403747 309.603469-67.787352 53.232822-109.285424 138.674005-109.440031 229.832562a15.665445 15.665445 0 0 0 4.558338 11.068201 15.645992 15.645992 0 0 0 11.067176 4.577791h499.675493c4.153903 0 8.122482-1.650503 11.058985-4.577791a15.668517 15.668517 0 0 0 4.558337-11.068201c-0.155631-92.781416-42.821956-179.091878-112.473803-232.1404z m-60.909914-461.548051l4.885981 113.255028 50.123282-113.255028h39.586479l8.595517 115.176861 45.623306-115.176861h33.511767l-69.120451 164.894684h-35.3179l-11.106084-123.270673-54.468652 123.270673H584.467532l-10.27469-164.894684h34.062617z m-171.741405 0h122.246789l-4.906459 27.891661h-88.965396l-6.442286 36.544515h82.776009l-4.906458 27.794391h-82.785224l-7.909515 44.869726h92.125106l-4.906458 27.794391H407.443902l29.070152-164.894684z m-145.183867 57.367271l-18.976691 107.528437h-30.924408l29.088582-164.894684h32.382421l48.056058 110.126034 19.431296-110.126034h30.914169l-29.070152 164.894684h-33.396068l-47.505207-107.528437z m221.304622 283.740125c-59.364871 0-114.790855-26.480746-152.126834-72.664117-5.418401-6.6829-10.874686-18.600925 0.08703-29.571856 10.304382-12.864095 25.824436-9.136129 31.261267-2.433776 31.349321 38.814469 70.906107 57.994913 120.778537 57.994913 50.161166 0 86.619675-17.354856 118.016094-56.565569 6.992113-9.927592 16.640184-12.515974 31.696418-1.487705 13.945318 10.855232 12.01427 21.169853 3.02251 31.310413-37.364647 46.647192-93.021006 73.417697-152.735022 73.417697z',
                    symbolSize: function (val) {
                        return ( 11 + parseInt(val[2])).toString();
                    },
                    shadowColor: "rgba(159,0,0,.5)",
                    z: 1,
                    color: '#FF0020'
                },
                {
                    name: "积极浆员",
                    data: positiveToday,
                    symbol: 'path://M432.3328 0c58.9824 0 114.5856 2.1504 166.912 6.3488 52.224 4.1984 98.6112 13.9264 139.0592 29.0816 38.8096 15.1552 69.5296 37.0688 92.2624 65.7408 22.7328 28.672 34.0992 66.6624 34.0992 113.7664l0 513.2288c0 25.2928-5.0176 49.2544-15.1552 72.0896-10.1376 22.7328-23.6544 42.5984-40.448 59.392C790.528 876.544 769.8432 889.9584 747.1104 900.096 724.3776 910.2336 700.416 915.2512 675.1232 915.2512l80.896 80.896L756.0192 1024 108.7488 1024 108.7488 996.1472l80.896-80.896c-25.2928 0-49.2544-5.0176-72.0896-15.1552C94.8224 889.9584 74.1376 876.544 55.6032 859.648c-16.896-16.7936-30.3104-36.6592-40.448-59.392C5.0176 777.5232 0 753.4592 0 728.1664L0 214.9376c0-47.104 11.3664-85.0944 34.0992-113.7664 22.7328-28.672 53.5552-50.5856 92.2624-65.7408C166.912 20.2752 213.1968 10.5472 265.5232 6.3488 317.7472 2.1504 373.3504 0 432.3328 0zM379.2896 214.9376 108.7488 214.9376l0 270.5408 270.5408 0L379.2896 214.9376zM189.6448 809.0624c10.1376 0 20.2752-2.56 30.3104-7.5776C230.0928 796.4672 238.4896 790.528 245.248 783.7696 253.6448 777.1136 259.9936 768.6144 264.192 758.4768 268.3904 748.4416 270.5408 738.304 270.5408 728.1664c0-11.776-2.1504-22.3232-6.3488-31.6416-4.1984-9.216-10.5472-18.0224-18.944-26.5216-6.7584-6.656-15.1552-12.1856-25.2928-16.384C209.8176 649.4208 199.7824 647.2704 189.6448 647.2704c-10.1376 0-20.2752 2.1504-30.3104 6.3488-10.1376 4.1984-18.5344 9.728-25.2928 16.384C125.5424 678.5024 119.296 687.3088 114.9952 696.5248c-4.1984 9.216-6.3488 19.8656-6.3488 31.6416 0 10.1376 2.1504 20.2752 6.3488 30.3104 4.1984 10.1376 10.5472 18.6368 18.944 25.2928C140.6976 790.528 149.1968 796.4672 159.232 801.4848 169.3696 806.5024 179.5072 809.0624 189.6448 809.0624zM756.0192 214.9376 485.4784 214.9376l0 270.5408 270.5408 0L756.0192 214.9376zM675.1232 809.0624c10.1376 0 20.2752-2.56 30.3104-7.5776C715.5712 796.4672 723.968 790.528 730.7264 783.7696 739.1232 777.1136 745.472 768.6144 749.6704 758.4768 753.8688 748.4416 756.0192 738.304 756.0192 728.1664c0-11.776-2.1504-22.3232-6.3488-31.6416C745.472 687.3088 739.1232 678.5024 730.7264 670.0032 723.968 663.3472 715.5712 657.8176 705.4336 653.6192 695.296 649.4208 685.1584 647.2704 675.1232 647.2704c-10.1376 0-20.2752 2.1504-30.3104 6.3488-10.1376 4.1984-18.5344 9.728-25.2928 16.384C611.0208 678.5024 604.672 687.3088 600.4736 696.5248c-4.1984 9.216-6.3488 19.8656-6.3488 31.6416 0 10.1376 2.1504 20.2752 6.3488 30.3104 4.1984 10.1376 10.5472 18.6368 18.944 25.2928C626.176 790.528 634.6752 796.4672 644.7104 801.4848 654.848 806.5024 664.9856 809.0624 675.1232 809.0624z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) < 10) {
                            return ( 11 + parseInt(val[2])).toString();
                        } else {
                            return ( 8 + parseInt(val[2])).toString();
                        }

                    },
                    shadowColor: "rgba(19,72,145,.5)",
                    z: 1,
                    color: '#2E4ECC'
                },
                {
                    name: "当天所有浆员",
                    data: allToday,
                    symbol: 'path://M512 959.469288c-10.69969 0-16.60519-1.283226-20.36584-5.689582-2.261507-2.64934-229.644237-272.535093-290.237267-403.232784-21.890566-46.818305-33.44267-97.655134-33.44267-147.265018 0-187.090049 154.331971-339.226005 344.045777-339.226005s344.045777 153.187915 344.045777 341.429183c0 56.871265-10.660804 99.841939-36.789904 148.300604C747.006362 687.675068 534.795169 950.618713 532.675902 953.24247c-2.532683 3.166109-7.055696 6.227842-20.145829 6.227842L512 959.470311zM512 272.403087c-72.959685 0-132.325771 59.365062-132.325771 132.325771S439.040315 537.054629 512 537.054629s132.325771-59.365062 132.325771-132.325771S584.959685 272.403087 512 272.403087z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) < 15) {
                            return ( 13 + parseInt(val[2])).toString();
                        } else {
                            return ( 9 + parseInt(val[2])).toString();
                        }
                    },
                    shadowColor: "rgba(10,148,2,.5)",
                    z: 1,
                    color: '#52BF4C'
                },
             {
                    name: "所有浆员",
                    data: self.allProvider,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }

                    },
                    shadowColor: "rgba(130,79,0,.5)",
                    z: 1,
                    color: '#FFA000'
                },
                {
                    name: "忠诚浆员",
                    data:self.zhongc,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(7,141,21,.5)",
                    z: 3,
                    color: '#52BF4C'
                },
                {
                    name: "复苏浆员",
                    data: self.fusu,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(7,141,21,.5)",
                    z: 3,
                    color: '#52BF4C'
                },
                {
                    name: "今年新浆员",
                    data: self.currentYearAddP,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(7,141,21,.5)",
                    z: 3,
                    color: '#52BF4C'
                },
                {
                    name: "休眠浆员",
                    data: self.xiuMian,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(7,141,21,.5)",
                    z: 3,
                    color: '#52BF4C'
                },
                {
                    name: "流失浆员",
                    data: self.liuShi,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(7,141,21,.5)",
                    z: 3,
                    color: '#52BF4C'
                },
                {
                    name: "已链接休眠的浆员",
                    data:  self.lianJieXiuMian,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(0,71,142,.5)",
                    z: 4,
                    color: '#FF0020'
                },
                {
                    name: "未被链接浆员",
                    data: self.notLianJ,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(7,141,21,.5)",
                    z: 3,
                    color: '#52BF4C'
                },
                {
                    name: "今年已进站",
                    data: self.currentYearComed,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(75,3,141,.5)",
                    z: 2,
                    color: '#FF0020'
                },
                {
                    name: "今年未进站",
                    data: self.currentYearNotComed,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(75,3,141,.5)",
                    z: 2,
                    color: '#00C2C0'
                },
                {
                    name: "未链接休眠的浆员",
                    data: self.notLianJieXiuMian,
                    symbol: 'path://M781.186088 616.031873q17.338645 80.573705 30.59761 145.848606 6.119522 27.537849 11.219124 55.075697t9.689243 49.976096 7.649402 38.247012 4.079681 19.888446q3.059761 20.398406-9.179283 27.027888t-27.537849 6.629482q-5.099602 0-14.788845-3.569721t-14.788845-5.609562l-266.199203-155.027888q-72.414343 42.836653-131.569721 76.494024-25.498008 14.278884-50.486056 28.557769t-45.386454 26.517928-35.187251 20.398406-19.888446 10.199203q-10.199203 5.099602-20.908367 3.569721t-19.378486-7.649402-12.749004-14.788845-2.039841-17.848606q1.01992-4.079681 5.099602-19.888446t9.179283-37.737052 11.729084-48.446215 13.768924-54.055777q15.298805-63.23506 34.677291-142.788845-60.175299-52.015936-108.111554-92.812749-20.398406-17.338645-40.286853-34.167331t-35.697211-30.59761-26.007968-22.438247-11.219124-9.689243q-12.239044-11.219124-20.908367-24.988048t-6.629482-28.047809 11.219124-22.438247 20.398406-10.199203l315.155378-28.557769 117.290837-273.338645q6.119522-16.318725 17.338645-28.047809t30.59761-11.729084q10.199203 0 17.848606 4.589641t12.749004 10.709163 8.669323 12.239044 5.609562 10.199203l114.231076 273.338645 315.155378 29.577689q20.398406 5.099602 28.557769 12.239044t8.159363 22.438247q0 14.278884-8.669323 24.988048t-21.928287 26.007968z',
                    symbolSize: function (val) {
                        if (parseInt(val[2]) <= 50) {
                            return ( 8 + parseInt(val[2]) / 5).toString();
                        } else if (parseInt(val) > 50 && parseInt(val) <= 100) {
                            return ( 8 + parseInt(val[2]) / 9).toString();
                        } else {
                            return ( 8 + parseInt(val[2]) / 13).toString();
                        }
                    },
                    shadowColor: "rgba(0,71,142,.5)",
                    z: 4,
                    color: '#FF0020'
                }
                ];
                data.forEach(item=>{
                  series.push({
                    name: item.name,
                    type: 'scatter',
                    coordinateSystem: 'bmap',
                    data: item.data,
                    z: item.z,
                    symbolSize: item.symbolSize,
                    symbol: item.symbol,
                    itemStyle: {
                      normal: {
                        color: item.color
                      }
                    }
                  })
                })
                return series;
           })()
        self.myChart.clear()
        self.myChart.setOption(option);
          self.bmap = self.myChart.getModel().getComponent('bmap').getBMap();
          self.bmap.addControl(new BMap.NavigationControl());
          analysisHttp.getJzArea().then(res=>{
          if(res.content&&res.content.length>0){
            res.content.forEach(element => {
              self.addDistrict(element.areaName)
            });
          }
        })
        self.loading = false;       
        })
      })
      
    },
    /******************************************************************************************业务流程数据分割线***********************************************
     * 获取各种数据方法块区域 start
     */
    /*
     * allPulpTodayvillageAjax
     * 当天所有村落浆员
     * */
    allPulpTodayvillageAjax() {
                 //获取当前村落名
        analysisHttp.getVillageDataAjax({'villageName':self.villageName}).then(res=>{
             self.allPulpTodayVillage = res.content;        
             self.selector.label.xiuMian= "休眠浆员【"+res.content.xiuMianPNum+"】人";
             self.selector.label.fusu = "复苏浆员【"+res.content.currentTimeFuSuPNum+"】人";
             self.selector.label.allProvider = "所有浆员【"+res.content.allProviderNum+"】人";
             self.selector.label.currentYearComed = "今年已进站【"+res.content.currentTimePNum+"】人";
             self.selector.label.currentYearAddP = "今年新浆员【"+res.content.currentTimeAddPNum+"】人";
             self.selector.label.zhongc = "忠诚浆员【"+res.content.currentTimeZCPNum+"】人";
             self.selector.label.currentYearNotComed = "今年未进站【"+res.content.currentTimeNotComedPNum+"】人";
             self.selector.label.liuShi = "流失浆员【"+res.content.liuShiPNum+"】人";
             self.selector.label.notLianJieXiuMian = "未链接休眠的浆员【"+res.content.notConnXMPNum+"】人";
             self.selector.label.notLianJ = "未被链接的浆员【"+res.content.currentTimeNotComedPNum+"】人";
             self.selector.label.lianJieXiuMian = "已链接休眠的浆员【"+(res.content.allProviderNum - res.content.connedPNum)+"】人";
        });
    },
    /******************************************************************************************业务流程数据分割线***********************************************
     * 获取各种数据方法块区域 end
     */
   
    /*
     * OpenCoverTable
     * 打开轮次表
     * */
    OpenCoverTable(add, type, t) {
         let self =  this;
         self.dialogGanT.tableBootomLoading = true;
         self.closeLoading();
         self.tableAdd = add;
         self.dialogGanT.title=" ";
         self.dialogGanT.isvisible = true;  
         self.vIfBooleans.isShowTable = true;
         self.villageName = add;
         //获取当天村落所有人的数据
         self.allPulpTodayvillageAjax();
         self.TableChartAjax(add, type, t);
    },
    /*
     * TableChartAjax
     * 表格请求
     * */
    TableChartAjax(add, type, t) {
        let self = this;
        let data =self.timestampToTime(self.searchDate,'yy-mm-dd');
        let param = {};
        param.villageName =  add;
        param.date  = data;
        if(t === "jj" && type === "today"){
              param.isPositive = true;
              param.isNew = false;
              analysisHttp.getJyXxPartTwo(param).then(res=>{
              self.roundTable = res.content;
                    self.tablebuttonMsg = {
                        type: type,
                        t: t
                    };
                var name = (t === "jj" && type === "today") ? "积极浆员" : ((t === "" && type === "today") ? "当天所有浆员" : ((t === "" && type === "all" && add !== "" ) ? "所有浆员" : ((t === "" && type === "all" && add === "") ? "今天所有村落浆员" : t)));
                self.initTable(add, name);
              });
        }
        //当天所有浆员
        if(t === "" && type === "today"){
              param.isPositive = false;
              param.isNew = false;
              analysisHttp.getJyXxPartTwo(param).then(res=>{
              self.roundTable = res.content;
                    self.tablebuttonMsg = {
                        type: type,
                        t: t
                    };
                var name = (t === "jj" && type === "today") ? "积极浆员" : ((t === "" && type === "today") ? "当天所有浆员" : ((t === "" && type === "all" && add !== "" ) ? "所有浆员" : ((t === "" && type === "all" && add === "") ? "今天所有村落浆员" : t)));
                self.initTable(add, name);
              });
        }
        //所有浆员
        if(t === "" && type === "all"){
              param.isPositive = false;
              param.isNew = false;
              param.providerType = "ALL_PROVIDER";
              param.currentPage = 1;
              param.size = 10000;
              analysisHttp.getProviderRound(param).then(res=>{
               if(res.content.records==null){
                       self.roundTable = [];
                  }else{
                       self.roundTable = res.content.records;
                  }
                    self.tablebuttonMsg = {
                        type: type,
                        t: t
                    };
                var name = (t === "jj" && type === "today") ? "积极浆员" : ((t === "" && type === "today") ? "当天所有浆员" : ((t === "" && type === "all" && add !== "" ) ? "所有浆员" : ((t === "" && type === "all" && add === "") ? "今天所有村落浆员" : t)));
                self.initTable(add, name);
              });
        }
        if(t != "" && type === "all") {
              param.isPositive = false;
              param.isNew = false;
              param.providerType = t;
              param.currentPage = 1;
              param.size = 10000;
              analysisHttp.getProviderRound(param).then(res=>{
                  if(res.content.records==null){
                       self.roundTable = [];
                  }else{
                       self.roundTable = res.content.records;
                  }
                    self.tablebuttonMsg = {
                        type: type,
                        t: t
                    };
             var name = (t === "jj" && type === "today") ? "积极浆员" : ((t === "" && type === "today") ? "当天所有浆员" : ((t === "" && type === "all" && add !== "" ) ? "所有浆员" : ((t === "" && type === "all" && add === "") ? "今天所有村落浆员" : t)));
             self.initTable(add, name);
              });
        }  
      },
      /*
       * initTable
       * 生成轮次表
       * */
    initTable(add, name) {
        let self = this;
        var bodyclientH = document.body.clientHeight;
        var ns;
        //判断取top的数据，取name
        if (name === "0A") {
            ns = "A类重点村";
        } else if (name === "0B") {
            ns = "B类重点村";
        } else if (name === "0C") {
            ns = "C类重点村";
        } else if (name === "1") {
            ns = "忠诚浆员";
        } else if (name === "2") {
            ns = "复苏浆员";
        } else if (name === "3") {
            ns = "今年新浆员";
        } else if (name === "4") {
            ns = "休眠浆员";
        } else if (name === "5") {
            ns = "流失浆员";
        } else if (name === "6") {
            ns = "已链接休眠的浆员";
        } else if (name === "7") {
            ns = "未被链接浆员";
        } else if (name === "8") {
            ns = "今年已进站";
        } else if (name === "9") {
            ns = "今年未进站";
        } else if (name === "10") {
            ns = "未链接休眠的浆员";
        } else {
            ns = name;
        }


        //判断显示下拉框
        if ( name === "今天所有村落浆员" || name === "积极浆员" || name === "当天所有浆员" ) {
            self.vIfBooleans.isShowSelected = false;
        } else {
            self.vIfBooleans.isShowSelected = true;
        }


        //判断是否展示上一天，下一天按钮
        // if (!($("#coverTable").is(":hidden")) && name === "今天所有村落浆员") {
        //     $(".select_time").css({
        //         zIndex: 999999999999,
        //         top: "20px",
        //         left: "400px"
        //     });
        // }

        //展示类名和村名
        self.form.title = add + "（" + self.roundTable.length + " 人 ）";
        //top table
        self.minuteTopTable = self.minuteTopTable==null?0:20;
        let thisTownData = self.allPulpTodayVillage;
        let topTableList = (name === "今天所有村落浆员") ? self.allPulpTodayVillage :self.minuteTopTable;
        $("#thisTown").bootstrapTable('destroy').bootstrapTable({
            cache: false,
            data:[self.allPulpTodayVillage],
            striped:true,
            height: (name === "今天所有村落浆员") ? ((bodyclientH - 70 - $("#coverTable>h1").height()) / 2) : "45",
            undefinedText: "/",
            columns: [
                {
                    width: name === "今天所有村落浆员" ? "2.3%" : "",
                    title: name === "今天所有村落浆员" ? '序号' : "序号",
                    field: "",
                    sortable: name === "今天所有村落浆员" ? true : false
                },
                {
                    width: name === "今天所有村落浆员" ? "8%" : "",
                    title: name === "今天所有村落浆员" ? '村名' : "",
                    sortable: name === "今天所有村落浆员" ? true : false,
                    field:"villageName"
                },
                {
                    field: "",
                    title: '重点管理村',
                    sortable: name === "今天所有村落浆员" ? true : false,
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%"
                },
                {
                    field: 'allProviderNum',
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                    align: "center",
                    title: '注册浆员总人数'
                },
                {
                    field: 'lastYearCollNum',
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    title: '去年浆量/袋'
                },
                {
                    field: 'currentTimePNum',
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    title: '当期进站人数'
                },
                {
                    field: "lastTimePNum",
                    sortable: name === "今天所有村落浆员" ? true : false,
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                     align: "center",
                    title: '同期进站人数'
                },
                {
                    field: 'currentTimeCollNum',
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                    align: "center",
                    title: '当期浆量/袋'
                },
                {
                    field: 'lastTimeCollNum',
                    title: '同期浆量/袋',
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                     align: "center",
                    sortable: name === "今天所有村落浆员" ? true : false
                },
                {
                    field: 'collNumDiff',
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    title: '当期与同期浆量差/袋'
                },
                {
                    field: 'currentTimeAddPNum',
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    title: '当期新增人数'
                },
                {
                    field: 'lastTimeAddPNum',
                    sortable: name === "今天所有村落浆员" ? true : false,
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                     align: "center",
                    title: '同期新增人数'
                },
                {
                    title: "新增浆员当期与同期差/人",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "addNumDiff"
                },
                {
                    field: 'currentTimeAddCollNum',
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    title: '当期新增浆量/袋'
                },
                {
                    title: "同期新增浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "lastTimeAddCollNum"
                },
                {
                    title: "当期复苏浆员总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "currentTimeFuSuPNum"
                },
                {
                    title: "当期复苏浆员浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "currentTimeFuSuCollNum"
                },
                {
                    title: "忠诚浆员当期总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "currentTimeZCPNum"
                },
                {
                    title: "忠诚浆员同期总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "lastTimeZCPNum"
                },
                {
                    title: "忠诚浆员当期浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "currentTimeZCCollNum"
                },
                {
                    title: "忠诚浆员同期浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "lastTimeZCCollNum"
                },
                {
                    title: "忠诚浆员浆量当期与同期差/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "zcCollNumDiff"
                },
                {
                    title: "忠诚浆员去年浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "lastYearZCCollNum"
                },
                {
                    title: "当期未进站总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                    field: "currentTimeNotComedPNum"
                },
                {
                    title: "当期未进站总人数去年浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.56%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "currentTimeNotComedPLastYearCollNum"
                },
                {
                    title: "休眠浆员总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "xiuMianPNum"
                },
                {
                    title: "休眠浆员去年浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "lastYearXiuMianCollNum"
                },
                {
                    title: "休眠浆员同期浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "lastTimeXiuMianCollNum"
                },
                {
                    title: "流失浆员总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "liuShiPNum"
                },
                {
                    title: "进站未链接浆员人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "comedNotConnPNum"
                },
                {
                    title: "进站未链接浆员当期浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "comedNotConnThisTimeCollNum"
                },
                {
                    title: "进站未链接浆员同期浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "comedNotConnLastTimeCollNum"
                },
                {
                    title: "进站未链接浆员去年浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "comedNotConnLastYearCollNum"
                    
                },
                {
                    title: "已链接休眠的浆员人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "connXMPNum"
                   
                },
                {
                    title: "已链接休眠的浆员同期浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "lastTimeConnXMCollNum"
                   
                },
                {
                    title: "未链接休眠的浆员人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "notConnXMPNum"
                    
                },
                {
                    title: "未链接休眠的浆员同期浆量/袋",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "lastTimeNotConnXMCollNum"
                    
                },
                {
                    title: "管理护士总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "connNurseNum"
                    
                },
                {
                    title: "已链接浆员总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "connedPNum"
                    

                },
                {
                    title: "义工总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "volunteerNum"
                },
                {
                    title: "义工管理浆员总人数",
                    width: name === "今天所有村落浆员" ? "2.3%" : "2.57%",
                    sortable: name === "今天所有村落浆员" ? true : false,
                     align: "center",
                    field: "volunConnGJZNum"
                

                }
            ]
        });

        //判断是不是展示村名字
        if (name !== "今天所有村落浆员") {
            $("#thisTown thead th:first-child").hide();
            $("#thisTown thead th:nth-child(2)").hide();
            $("#thisTown tbody td:first-child").hide();
            $("#thisTown tbody td:nth-child(2)").hide();
        } else {
            $("#thisTown thead th:first-child").show();
            $("#thisTown thead th:nth-child(2)").show();
            $("#thisTown tbody td:first-child").show();
            $("#thisTown tbody td:nth-child(2)").show();
        }

        //bottom table
        $("#table").bootstrapTable('destroy').bootstrapTable({
            cache: false,
            data: self.roundTable,
            height: (name === "今天所有村落浆员") ? ((bodyclientH - 70 - $("#coverTable>h1").height()) / 2) : ( bodyclientH - 80 - $("#thisTown").height() - $("#coverTable>h1").height()),
            undefinedText: "",
            striped:true,
            align: "center",
            sortName: "times",
            onPostHeader: function () {
                //标记轮次
                self.getRoundAjax(function (item) {
                    $("th[data-field=round" + item.roundIdx + "]").css("background", "rgb(54, 142, 78)");
                });
            },
            onPostBody: function () {
                //添加class pulp-name-class
                $('.pulp-name-class').on('dblclick', function () {
                    $(this).parents('tr').find(".pulp-name").addClass($(this).data("row"));
                }).trigger('dblclick');
                //manageNurse,生成护士下拉列表
                // getNurseList(function (item) {
                //     var nurseHtml = "<option value=''>空</option>";
                //     for (var nur = 0; nur < item.length; nur++) {
                //         nurseHtml += "<option value='" + item[nur].nurseId + "'>" + item[nur].nurseName + "</option>";
                //     }
                //     $("select[name=manageNurse]").html(nurseHtml);
                //     $('select[name="manageNurse"][value]').each(function () {
                //         $(this).find('option[value="' + $(this).attr('value') + '"]').prop('selected', true);
                //     });
                // });
                //importantPlup,生成重点浆员下拉列表
                // getImportPulpData(function (item) {
                //     var importHtml = "<option value=''>空</option>";
                //     for (var i = 0; i < item.length; i++) {
                //         importHtml += "<option value='" + item[i].code + "'>" + item[i].name + "</option>";
                //     }
                //     $("select[name=importantPlup]").html(importHtml);
                //     $('select[name="importantPlup"][value]').each(function () {
                //         $(this).find('option[value="' + $(this).attr('value') + '"]').prop('selected', true);
                //     });
                // });
                // hideCover()
            },
            columns: [

                {
                    width: "2%",
                    class: "",
                    title: '序号',
                    sortable: true,
                     align: "center",
                    formatter: function (value, row, index) {
                        return index + 1;
                    }
                },
                {
                    field: "cardId",
                    title: '卡号',
                    class: "",
                    sortable: true,
                     align: "center",
                    width: "4%"
                },
                {
                    field: 'name',
                    width: "4%",
                    class: "pulp-name",
                    sortable: true,
                     align: "center",
                    title: '姓名',
                },
                {
                    field: "villId",
                    class: "",
                    width: "4%",
                    sortable: true,
                     align: "center",
                    title: '重点浆员类型'
                },
                {
                    field: 'age',
                    class: "",
                    sortable: true,
                    width: "2%",
                     align: "center",
                    title: '年龄'
                },
                {
                    field: 'gender',
                    title: '性别',
                    sortable: true,
                    class: "",
                     align: "center",
                    width: "2%",
                },
                {
                    field: 'pulpAge',
                    width: "2%",
                    class: "",
                     align: "center",
                    sortable: true,
                    title: '浆龄'
                },
                {
                    field: 'currentYearAllCollNum',
                    width: "2%",
                    sortable: true,
                     align: "center",
                    title: '今年当期总次数',
                    class: "bg_2f9",
                },
                {
                    field: 'lastYearCurrentTimeCollNum',
                    class: "bg_2f9",
                    sortable: true,
                    width: "3%",
                     align: "center",
                    title: '去年同期总次数'
                },
                {
                    field: 'lastYearAllCollNum',
                    sortable: true,
                    width: "3%",
                    class: "bg_2f9",
                     align: "center",
                    title: '去年献浆总次数',
                },
                {
                    title: "献浆总次数",
                    sortable: true,
                    class: "bg_2f9",
                    width: "3%",
                     align: "center",
                    field: "allCollNum",
                },
                // {
                //     title: "献浆员类型",
                //     class: "",
                //     sortable: true,
                //     width: "3%",
                //     field: "gjzType"
                // },
                {
                    title: "管理护士姓名",
                    class: "",
                    sortable: true,
                    width: "4%",
                    align:"center",
                    field: "manageNurse"
                },
                {
                    title: "管理义工姓名",
                    class: "round-volunteer",
                    width: "4%",
                    sortable: true,
                    field: "yiGong",
                    align:"center",
                    formatter: function (value, row, index) {
                        var html = "<div class='cursor' ><span data-yigongid='" + (row.yiGongId ? row.yiGongId : "") + "'>" + (row.yiGong ? row.yiGong : "") + "</span><span onclick='openVolunteer(this,\"" + row.providerNo + "\")' class='placehold-communication cursor' ></span></div>";
                        return html;
                    }
                },
                {
                    title: "介绍人姓名",
                    class: "",
                    width: "4%",
                    sortable: true,
                    align:"center",
                    field: "introducer"
                },
                // {
                //     title: "分组编号",
                //     class: "",
                //     width: "2%",
                //     sortable: true,
                //     field: "jbGroup"
                // },
                {
                    title: "最新沟通内容",
                    class: "",
                    width: "5%",
                    sortable: true,
                    align:"center",
                    field: "communResult",
                    formatter: function (value, row, index) {
                        var html = "<div " + (value ? "onmouseover='mouseoverToast(this,\"" + value + "\")'" : "") + "  onmouseout='mouseoutToast(this)'><span class='cursor' style='width: 100%;display: inline-block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;' onclick='" + ( row.communResult ? "openNotPulpCommunication(\"" + row.providerNo + "\")" : "") + "'>" + (value ? (value.length > 5 ? (value.substr(0, 5) + "...") : value) : "") + "</span><span class='placehold-communication'></span></div>";
                        return html;
                    }
                },
                {
                    title: "详细地址",
                    class: "",
                    width: "8%",
                    sortable: true,
                    align:"center",
                    field: "detailVillage"
                },
                {
                    title: "1",
                    class: "roundID",
                    field: "row.allRound[1].round1",
                     align: "center",
                    sortable: true,
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                          return getRoundEle(row.allRound[1].round1, row, index, row.allRound[0].round1, row.allRound[1].round1);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round1, row, index, row.lastYearRound.round1, row.currentYearRound.round1);
                        }
                        
                    }
                },
                {
                    title: "2",
                    class: "roundID",
                    sortable: true,
                    align:"center",
                    field: "row.allRound[1].round2",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                          return getRoundEle(row.allRound[1].round2, row, index, row.allRound[0].round2, row.allRound[1].round2);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round2, row, index, row.lastYearRound.round2, row.currentYearRound.round2);
                        }
                        
                    }
                },
                {
                    title: "3",
                    class: "roundID",
                    sortable: true,
                    align:"center",
                    field: "row.allRound[1].round3",
                   formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                          return getRoundEle(row.allRound[1].round3, row, index, row.allRound[0].round3, row.allRound[1].round3);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round3, row, index, row.lastYearRound.round3, row.currentYearRound.round3);
                        }
                        
                    }
                },
                {
                    title: "4",
                    class: "roundID",
                    sortable: true,
                    align:"center",
                    field: "row.allRound[1].round4",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                          return getRoundEle(row.allRound[1].round4, row, index, row.allRound[0].round4, row.allRound[1].round4);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round4, row, index, row.lastYearRound.round4, row.currentYearRound.round4);
                        }
                        
                    }
                },
                {
                    title: "5",
                    class: "roundID",
                    sortable: true,
                    align:"center",
                    field: "row.allRound[1].round5",
                     formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                          return getRoundEle(row.allRound[1].round5, row, index, row.allRound[0].round5, row.allRound[1].round5);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round5, row, index, row.lastYearRound.round5, row.currentYearRound.round5);
                        }
                        
                    }
                },
                {
                    title: "6",
                    class: "roundID",
                    field: "row.allRound[1].round6",
                    sortable: true,
                    align:"center",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                          return getRoundEle(row.allRound[1].round6, row, index, row.allRound[0].round6, row.allRound[1].round6);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round6, row, index, row.lastYearRound.round6, row.currentYearRound.round6);
                        }
                        
                    }
                },
                {
                    title: "7",
                    class: "roundID",
                    field: "row.allRound[1].round7",
                    sortable: true,
                    align:"center",
                     formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                          return getRoundEle(row.allRound[1].round7, row, index, row.allRound[0].round7, row.allRound[1].round7);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round7, row, index, row.lastYearRound.round7, row.currentYearRound.round7);
                        }
                        
                    }
                },
                {
                    title: "8",
                    class: "roundID",
                    field: "row.allRound[1].round8",
                    sortable: true,
                    align:"center",
                     formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                          return getRoundEle(row.allRound[1].round8, row, index, row.allRound[0].round8, row.allRound[1].round8);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round8, row, index, row.lastYearRound.round8, row.currentYearRound.round8);
                        }
                        
                    }
                },
                {
                    title: "9",
                    class: "roundID",
                    field: "row.allRound[1].round9",
                    sortable: true,
                    align:"center",
                   formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                          return getRoundEle(row.allRound[1].round9, row, index, row.allRound[0].round9, row.allRound[1].round9);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round9, row, index, row.lastYearRound.round9, row.currentYearRound.round9);
                        }
                        
                    }
                },
                {
                    title: "10",
                    class: "roundID",
                    field: "row.allRound[1].round10",
                     align: "center",
                    sortable: true,
                     formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round10, row, index, row.allRound[0].round10, row.allRound[1].round10);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round10, row, index, row.lastYearRound.round10, row.currentYearRound.round10);
                        }
                        
                    }
                },
                {
                    title: "11",
                    class: "roundID",
                    sortable: true,
                    align:"center",
                    field: "row.allRound[1].round11",
                     formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round11, row, index, row.allRound[0].round11, row.allRound[1].round11);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round11, row, index, row.lastYearRound.round11, row.currentYearRound.round11);
                        }
                        
                    }
                },
                {
                    title: "12",
                    class: "roundID",
                    sortable: true,
                    align:"center",
                    field: "row.allRound[1].round12",
                   formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round12, row, index, row.allRound[0].round12, row.allRound[1].round12);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round12, row, index, row.lastYearRound.round12, row.currentYearRound.round12);
                        }
                        
                    }
                },
                {
                    title: "13",
                    class: "roundID",
                    field: "row.allRound[1].round13",
                     align: "center",
                    sortable: true,
                
                  formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round13, row, index, row.allRound[0].round13, row.allRound[1].round13);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round13, row, index, row.lastYearRound.round13, row.currentYearRound.round13);
                        }
                        
                    }
                },
                {
                    title: "14",
                    class: "roundID",
                    sortable: true,
                     align: "center",
                    field: "row.allRound[1].round14",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round14, row, index, row.allRound[0].round14, row.allRound[1].round14);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round14, row, index, row.lastYearRound.round14, row.currentYearRound.round14);
                        }
                        
                    }
                },
                {
                    title: "15",
                    class: "roundID",
                    field: "row.allRound[1].round15",
                     align: "center",
                    sortable: true,
                     formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round15, row, index, row.allRound[0].round15, row.allRound[1].round15);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round15, row, index, row.lastYearRound.round15, row.currentYearRound.round15);
                        }                        
                    }
                },
                {
                    title: "16",
                    class: "roundID",
                    field: "row.allRound[1].round16",
                     align: "center",
                    sortable: true,
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round16, row, index, row.allRound[0].round16, row.allRound[1].round16);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round16, row, index, row.lastYearRound.round16, row.currentYearRound.round16);
                        }                        
                    }
                },
                {
                    title: "17",
                    class: "roundID",
                    field: "row.allRound[1].round17",
                     align: "center",
                    sortable: true,
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round17, row, index, row.allRound[0].round17, row.allRound[1].round17);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round17, row, index, row.lastYearRound.round17, row.currentYearRound.round17);
                        }                        
                    }
                },
                {
                    title: "18",
                    class: "roundID",
                    sortable: true,
                     align: "center",
                    field: "row.allRound[1].round18",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round18, row, index, row.allRound[0].round18, row.allRound[1].round18);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round18, row, index, row.lastYearRound.round18, row.currentYearRound.round18);
                        }                        
                    }

                },
                {
                    title: "19",
                    class: "roundID",
                    field: "row.allRound[1].round19",
                     align: "center",
                    sortable: true,
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round19, row, index, row.allRound[0].round19, row.allRound[1].round19);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round19, row, index, row.lastYearRound.round19, row.currentYearRound.round19);
                        }                        
                    }

                },
                {
                    title: "20",
                    class: "roundID",
                    sortable: true,
                     align: "center",
                    field: "row.allRound[1].round20",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round20, row, index, row.allRound[0].round20, row.allRound[1].round20);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round20, row, index, row.lastYearRound.round20, row.currentYearRound.round20);
                        }                        
                    }

                },
                {
                    title: "21",
                    class: "roundID",
                    sortable: true,
                     align: "center",
                    field: "row.allRound[1].round21",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round21, row, index, row.allRound[0].round21, row.allRound[1].round21);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round21, row, index, row.lastYearRound.round21, row.currentYearRound.round21);
                        }                        
                    }
                },
                {
                    title: "22",
                    class: "roundID",
                    sortable: true,
                     align: "center",
                    field: "row.allRound[1].round22",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round22, row, index, row.allRound[0].round22, row.allRound[1].round22);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round22, row, index, row.lastYearRound.round22, row.currentYearRound.round22);
                        }                        
                    }
                },
                {
                    title: "23",
                    class: "roundID",
                    sortable: true,
                     align: "center",
                    field: "row.allRound[1].round23",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round23, row, index, row.allRound[0].round23, row.allRound[1].round23);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round23, row, index, row.lastYearRound.round23, row.currentYearRound.round23);
                        }                        
                    }

                },
                {
                    title: "24",
                    class: "roundID",
                    sortable: true,
                     align: "center",
                    field: "row.allRound[1].round24",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round24, row, index, row.allRound[0].round24, row.allRound[1].round24);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round24, row, index, row.lastYearRound.round24, row.currentYearRound.round24);
                        }                        
                    }

                },
                {
                    title: "25",
                    class: "roundID",
                    sortable: true,
                     align: "center",
                    field: "row.allRound[1].round25",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round25, row, index, row.allRound[0].round25, row.allRound[1].round25);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round25, row, index, row.lastYearRound.round25, row.currentYearRound.round25);
                        }                        
                    }

                },
                {
                    title: "26",
                    class: "roundID",
                    sortable: true,
                     align: "center",
                    field: "row.allRound[1].round26",
                    formatter: function (value, row, index) {
                        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                        return getRoundEle(row.allRound[1].round26, row, index, row.allRound[0].round26, row.allRound[1].round26);
                        }else
                        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
                          return getRoundEle(row.currentYearRound.round26, row, index, row.lastYearRound.round26, row.currentYearRound.round26);
                        }                        
                    }

                }
            ]
        });
        self.dialogGanT.tableBootomLoading = false;
    },
    /**
     * 获取当前轮次
     */
    getRoundAjax(callback){
        //动态获取后台轮次
         //获取相关后台数据，根据前台所传Id
        analysisHttp.getRoundAjax().then(res=>{
            callback(res.content);
       });       
    },
    /* 
     * OpenCoverGants
     * 打开甘特图
     * */
    OpenCoverGants(add, type) {
      let self =  this;
      self.dialogGanT.title=" ";
      self.dialogGanT.isvisible = true;  
      self.vIfBooleans.isShowGant = true; 
      self.GantChartAjax(add, type, function (item) {
          var name = (type === "jj") ? "积极浆员" : ((type === "new") ? "新浆员" : "当天所有浆员");
         self.initGantt(add, name, item);
        
      });
    },
    /*
    * GantChartAjax
    * 获取甘特图
    * */
    GantChartAjax (add, type, callback) {
        let self = this;
        let data =self.timestampToTime(self.searchDate,'yy-mm-dd');
        let param = {};
        if (type === "jj"){       //积极浆员
        param.isPositive = true;
        param.isNew = false;
        } 
        if(type === "new"){
        param.isNew = true;       //新浆员
        param.isPositive = false;
        } 
        if(type ==="all"){        //所有浆员
        param.isNew = false;
        param.isPositive = false;
        }
        param.villageName =  add;
        param.date  = data;
        analysisHttp.getJyXxPartOne(param).then(res=>{
          callback(res.content);
       });
        // $.ajax({
        //     url: (type === "jj") ? "http://60.164.210.223:7577/Nvr/map/getJijRegGtt" : "http://60.164.210.223:7577/Nvr/map/getRegGtt",
        //     dataType: "jsonp",
        //     type: 'POST',
        //     scriptCharset: 'utf-8',
        //     contentType: "application/json;charset=utf-8",
        //     data: {
        //         date: $(".write_date").text(),
        //         address: add,
        //         isNew: type === "new" ? 1 : 0
        //     },
        //     success: function (item) {
        //         callback(item);
        //     },
        //     error: function (error) {
        //         alert("甘特图请求失败！");
        //     }
        // });
    },
    /*
    * initGantt
    * 生成甘特图
    * */
    initGantt(add, name, gunter) {
      let self = this;
      self.myChartGanT = self.$echarts.init(self.$refs.coverGant);
      var series = [],
          yAxis = [],
          legend = [], 
          xAxis = [],
          names = ["已采完", "未采完"];
      for (var n = 0; n < names.length; n++) {
          legend.push({
              name: names[n],
              icon: "circle"
          })
      };
      for (var i in gunter) {
          var item = gunter[i];
          series.push({
              name: item.isEnd === "1" ? "已采完" : "未采完",
              value: [
                  item.name,
                  item.startTime,
                  item.endTime,
                  item.betweenMinutes,
                  item.cardId,
                  item.id,
                  item.gender,
                  item.age,
                  item.registerNo,
                  item.idNo
              ]
          });
          yAxis.push(item.name);
      };
      var option = {
          color: [
              '#e95e48',
              '#DC951F',
              '#DDB100',
              '#DAD503',
              '#8AC867',
              '#37B8D4',
              '#7BCFE7',
              '#6A9BD3'
          ],
          title: {
              text: name + "：" + add + " ( " + gunter.length + " 人 )",
              textStyle: {
                  color: '#050505',
                  fontFamily: '微软雅黑'
              }
          },
          legend: {
              left: "center",
              textStyle: {
                  color: "#050505"
              },
              data: legend
          },
          dataZoom: [
              {
                  type: 'slider',
                  filterMode: 'weakFilter',
                  showDataShadow: true,
                  bottom: 10,
                  height: 5,
                  borderColor: 'transparent',
                  backgroundColor: '#e2e2e2',
                  handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z',
                  handleSize: 20,
                  handleStyle: {
                      shadowBlur: 6,
                      shadowOffsetX: 1,
                      shadowOffsetY: 2,
                      shadowColor: '#aaa'
                  },
                  labelFormatter: ''
              },
              {
                  type: 'inside',
                  filterMode: 'weakFilter'
              }
          ],
          grid: {
              left: 100,
              right: 40
          },
          xAxis: {
              type: 'time',
              splitNumber: 30,
              splitLine: {
                  show: false
              },
              axisLine: {
                  lineStyle: {
                      color: "#050505"
                  }
              },
              data: xAxis
          },
          yAxis: {
              axisLine: {
                  lineStyle: {
                      color: "#050505"
                  }
              },
              data: yAxis
          },
          tooltip: {
              padding: [5, 10],
              formatter: function (params) {
                  var html;
                  html = '<div>' +
                      '<p>姓名： ' + params.data.value[0] + '</p>' +
                      '<p>年龄： ' + params.data.value[7] + '</p>' +
                      '<p>性别： ' + params.data.value[6] + '</p>' +
                      '<p>substr： ' + params.data.value[4] + '</p>' +
                      '<p>登记号： ' + params.data.value[8] + '</p>' +
                      '<p>开始时间： ' + params.data.value[1] + '</p>' +
                      '<p>结束时间： ' + params.data.value[2] + '</p>' +
                      '<p>总耗时： ' + params.data.value[3] + '分钟</p>' +
                      '</div>';
                  return html;
              }
          },
          series: (function () {
              var server = [];
              for (var k = 0; k < series.length; k++) {
                  var item = series[k];
                  server.push({
                      name: item.name,
                      type: 'custom',
                      encode: {x: [1, 2], y: 0},
                      renderItem: function (params, api) {
                          var categoryIndex = api.value(0);
                          var start = api.coord([api.value(1), categoryIndex]);
                          var end = api.coord([api.value(2), categoryIndex]);
                          return {
                              type: 'rect',
                              shape: self.$echarts.graphic.clipRectByRect(
                                  {
                                      x: start[0],
                                      y: start[1] - 2,
                                      width: end[0] - start[0],
                                      height: 10
                                  },
                                  {
                                      x: params.coordSys.x,
                                      y: params.coordSys.y,
                                      width: params.coordSys.width,
                                      height: params.coordSys.height
                                  }
                              ),
                              style: api.style()
                          };
                      },
                      itemStyle: {
                          normal: {
                              opacity: 0.8,
                              color: item.name === "已采完" ?"#EF594F" : "#DE923C"
                          }
                      },
                      data: [
                          {
                              name: item.name,
                              value: item.value
                          }
                      ]
                  })
              }
              return server;
          }())
      };
      self.myChartGanT.clear();
      self.myChartGanT.setOption(option);
      // }
    },
    /*
    * closeCover
    * 关闭cover
    * */
    closeCover() {
        let self = this;
        self.vIfBooleans.isShowGant = false;
        self.vIfBooleans.isShowTable = false;
        self.vIfBooleans.isShowSetImport = false;
        self.dialogGanT.isvisible = false;
    },
    /*
     *延迟关闭加载loading效果
     *dealTime  延迟处理时间
     */
    closeLoading(){
        let self = this;
        window.triggerLoading();
    },
   
    /**
     * 添加行政区划
     * @param {} districtName 行政区划名
     * @returns  无返回值
     */
    addDistrict(districtName){
      let self = this;
       //使用计数器来控制加载过程
      self.districtLoading++;
    var bdary = new BMap.Boundary();
    bdary.get(districtName, function (rs) {       //获取行政区域
        var count = rs.boundaries.length; //行政区域的点有多少个
        if (count === 0) {
            alert('未能获取当前输入行政区域');
            return;
        }
        for (var i = 0; i < count; i++) {
            self.blist.push({ points: rs.boundaries[i], name: districtName });
        };
        //加载完成区域点后计数器-1
        self.districtLoading--;
        if (self.districtLoading == 0) {
            //全加载完成后画端点
            self.drawBoundary();
        }
      });
    },
    drawBoundary() {
      let self = this;
      //包含所有区域的点数组
      var pointArray = [];
      /*画遮蔽层的相关方法
      *思路: 首先在中国地图最外画一圈，圈住理论上所有的中国领土，然后再将每个闭合区域合并进来，并全部连到西北角。
      *      这样就做出了一个经过多次西北角的闭合多边形*/
      //定义中国东南西北端点，作为第一层
      var pNW = { lat: 59.0, lng: 73.0 }
      var pNE = { lat: 59.0, lng: 136.0 }
      var pSE = { lat: 3.0, lng: 136.0 }
      var pSW = { lat: 3.0, lng: 73.0 }
      //向数组中添加一次闭合多边形，并将西北角再加一次作为之后画闭合区域的起点
      var pArray = [];
      pArray.push(pNW);
      pArray.push(pSW);
      pArray.push(pSE);
      pArray.push(pNE);
      pArray.push(pNW);
      //循环添加各闭合区域
      for (var i = 0; i < self.blist.length; i++) {
          //添加显示用标签层
          var label = new BMap.Label(self.blist[i].name, { offset: new BMap.Size(20, -10) });
          label.hide();
          self.bmap.addOverlay(label);

          //添加多边形层并显示
          var ply = new BMap.Polygon(self.blist[i].points, { strokeWeight: 1, strokeColor: "#EB6082", fillOpacity: 0.01, fillColor: " #FFFFFF" }); //建立多边形覆盖物
          ply.name = self.blist[i].name;
          ply.label = label;
          self.bmap.addOverlay(ply);

          // //添加名称标签层
          // var centerlabel = new BMap.Label(self.blist[i].name, { offset: new BMap.Size(0, 0) });
          // centerlabel.setPosition(ply.getBounds().getCenter());
          // self.bmap.addOverlay(centerlabel);

          //将点增加到视野范围内
          var path = ply.getPath();
          pointArray = pointArray.concat(path);
          //将闭合区域加到遮蔽层上，每次添加完后要再加一次西北角作为下次添加的起点和最后一次的终点
          pArray = pArray.concat(path);
          pArray.push(pArray[0]);
      }
    //添加遮蔽层
    // var plyall = new BMap.Polygon(pArray, { strokeOpacity: 0.0000001, strokeColor: "#000000", strokeWeight: 0.00001, fillColor: "#000000", fillOpacity: 0.4 }); //建立多边形覆盖物
    // self.bmap.addOverlay(plyall);
    }
  }
  }
  // import Vue from 'vue';
  // var app = new Vue(obj);
  window.OpenCoverGant =  function (name,type){
      window.self.OpenCoverGants(name,type);
  }
  window.OpenCoverTable = function(add, type, t){
      window.self.OpenCoverTable(add, type, t);
  }
    /*
* madeClassDate
* 做带时间的classc
* */
 window.madeClassDate =  function (row) {
        if(row.allRound!=null&&typeof (row.allRound) != "undefined"){
                var r1 = row.allRound[1].round1.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round1.substr(2, 10) : "";
                var r2 = row.allRound[1].round2.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round2.substr(2, 10) : "";
                var r3 = row.allRound[1].round3.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round3.substr(2, 10) : "";
                var r4 = row.allRound[1].round4.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round4.substr(2, 10) : "";
                var r5 = row.allRound[1].round5.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round5.substr(2, 10) : "";
                var r6 = row.allRound[1].round6.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round6.substr(2, 10) : "";
                var r7 = row.allRound[1].round7.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round7.substr(2, 10) : "";
                var r8 = row.allRound[1].round8.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round8.substr(2, 10) : "";
                var r9 = row.allRound[1].round9.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round9.substr(2, 10) : "";
                var r10 = row.allRound[1].round10.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round10.substr(2, 10) : "";
                var r11 = row.allRound[1].round11.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round11.substr(2, 10) : "";
                var r12 = row.allRound[1].round12.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round12.substr(2, 10) : "";
                var r13 = row.allRound[1].round13.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round13.substr(2, 10) : "";
                var r14 = row.allRound[1].round14.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round14.substr(2, 10) : "";
                var r15 = row.allRound[1].round15.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round15.substr(2, 10) : "";
                var r16 = row.allRound[1].round16.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round16.substr(2, 10) : "";
                var r17 = row.allRound[1].round17.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round17.substr(2, 10) : "";
                var r18 = row.allRound[1].round18.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round18.substr(2, 10) : "";
                var r19 = row.allRound[1].round19.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round19.substr(2, 10) : "";
                var r20 = row.allRound[1].round20.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round20.substr(2, 10) : "";
                var r21 = row.allRound[1].round21.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round21.substr(2, 10) : "";
                var r22 = row.allRound[1].round22.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round22.substr(2, 10) : "";
                var r23 = row.allRound[1].round23.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round23.substr(2, 10) : "";
                var r24 = row.allRound[1].round24.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round24.substr(2, 10) : "";
                var r25 = row.allRound[1].round25.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round25.substr(2, 10) : "";
                var r26 = row.allRound[1].round26.substr(0, 1) !== "0" ? "pulp" + row.allRound[1].round26.substr(2, 10) : "";
                var lr1 = row.allRound[0].round1.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round1.substr(2, 10) : "";
                var lr2 = row.allRound[0].round2.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round2.substr(2, 10) : "";
                var lr3 = row.allRound[0].round3.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round3.substr(2, 10) : "";
                var lr4 = row.allRound[0].round4.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round4.substr(2, 10) : "";
                var lr5 = row.allRound[0].round5.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round5.substr(2, 10) : "";
                var lr6 = row.allRound[0].round6.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round6.substr(2, 10) : "";
                var lr7 = row.allRound[0].round7.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round7.substr(2, 10) : "";
                var lr8 = row.allRound[0].round8.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round8.substr(2, 10) : "";
                var lr9 = row.allRound[0].round9.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round9.substr(2, 10) : "";
                var lr10 = row.allRound[0].round10.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round10.substr(2, 10) : "";
                var lr11 = row.allRound[0].round11.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round11.substr(2, 10) : "";
                var lr12 = row.allRound[0].round12.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round12.substr(2, 10) : "";
                var lr13 = row.allRound[0].round13.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round13.substr(2, 10) : "";
                var lr14 = row.allRound[0].round14.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round14.substr(2, 10) : "";
                var lr15 = row.allRound[0].round15.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round15.substr(2, 10) : "";
                var lr16 = row.allRound[0].round16.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round16.substr(2, 10) : "";
                var lr17 = row.allRound[0].round17.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round17.substr(2, 10) : "";
                var lr18 = row.allRound[0].round18.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round18.substr(2, 10) : "";
                var lr19 = row.allRound[0].round19.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round19.substr(2, 10) : "";
                var lr20 = row.allRound[0].round20.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round20.substr(2, 10) : "";
                var lr21 = row.allRound[0].round21.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round21.substr(2, 10) : "";
                var lr22 = row.allRound[0].round22.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round22.substr(2, 10) : "";
                var lr23 = row.allRound[0].round23.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round23.substr(2, 10) : "";
                var lr24 = row.allRound[0].round24.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round24.substr(2, 10) : "";
                var lr25 = row.allRound[0].round25.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round25.substr(2, 10) : "";
                var lr26 = row.allRound[0].round26.substr(0, 1) !== "0" ? "pulp" + row.allRound[0].round26.substr(2, 10) : "";

                var classDate = "" + r1 + " " + r2 + " " + r3 + " " + r4 + " " + r5 + " " + r6 + " " + r7 + " " + r8 + " " + r9 + " " + r10 + " " + r11 + " " + r12 + " " + r13 + " " + r14 + " " + r15 + " " + r16 + " " + r17 + " " + r18 + " " + r19 + " " + r20 + " " + r21 + " " + r22 + " " + r23 + " " + r24 + " " + r25 + " " + r26 + " " +
                    lr1 + " " + lr2 + " " + lr3 + " " + lr4 + " " + lr5 + " " + lr6 + " " + lr7 + " " + lr8 + " " + lr9 + " " + lr10 + " " + lr11 + " " + lr12 + " " + lr13 + " " + lr14 + " " + lr15 + " " + lr16 + " " + lr17 + " " + lr18 + " " + lr19 + " " + lr20 + " " + lr21 + " " + lr22 + " " + lr23 + " " + lr24 + " " + lr25 + " " + lr26 + "";
                return classDate;              
                        
           }else
        if(row.lastYearRound !=null && typeof(row.lastYearRound)!= "undefined"&& row.currentYearRound !=null&&  typeof (row.currentYearRound) != "undefined"){
               var r1 = row.currentYearRound.round1.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round1.substr(2, 10) : "";
                var r2 = row.currentYearRound.round2.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round2.substr(2, 10) : "";
                var r3 = row.currentYearRound.round3.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round3.substr(2, 10) : "";
                var r4 = row.currentYearRound.round4.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round4.substr(2, 10) : "";
                var r5 = row.currentYearRound.round5.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round5.substr(2, 10) : "";
                var r6 = row.currentYearRound.round6.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round6.substr(2, 10) : "";
                var r7 = row.currentYearRound.round7.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round7.substr(2, 10) : "";
                var r8 = row.currentYearRound.round8.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round8.substr(2, 10) : "";
                var r9 = row.currentYearRound.round9.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round9.substr(2, 10) : "";
                var r10 = row.currentYearRound.round10.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round10.substr(2, 10) : "";
                var r11 = row.currentYearRound.round11.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round11.substr(2, 10) : "";
                var r12 = row.currentYearRound.round12.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round12.substr(2, 10) : "";
                var r13 = row.currentYearRound.round13.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round13.substr(2, 10) : "";
                var r14 = row.currentYearRound.round14.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round14.substr(2, 10) : "";
                var r15 = row.currentYearRound.round15.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round15.substr(2, 10) : "";
                var r16 = row.currentYearRound.round16.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round16.substr(2, 10) : "";
                var r17 = row.currentYearRound.round17.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round17.substr(2, 10) : "";
                var r18 = row.currentYearRound.round18.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round18.substr(2, 10) : "";
                var r19 = row.currentYearRound.round19.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round19.substr(2, 10) : "";
                var r20 = row.currentYearRound.round20.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round20.substr(2, 10) : "";
                var r21 = row.currentYearRound.round21.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round21.substr(2, 10) : "";
                var r22 = row.currentYearRound.round22.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round22.substr(2, 10) : "";
                var r23 = row.currentYearRound.round23.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round23.substr(2, 10) : "";
                var r24 = row.currentYearRound.round24.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round24.substr(2, 10) : "";
                var r25 = row.currentYearRound.round25.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round25.substr(2, 10) : "";
                var r26 = row.currentYearRound.round26.substr(0, 1) !== "0" ? "pulp" + row.currentYearRound.round26.substr(2, 10) : "";
                var lr1 = row.lastYearRound.round1.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round1.substr(2, 10) : "";
                var lr2 = row.lastYearRound.round2.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round2.substr(2, 10) : "";
                var lr3 = row.lastYearRound.round3.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round3.substr(2, 10) : "";
                var lr4 = row.lastYearRound.round4.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round4.substr(2, 10) : "";
                var lr5 = row.lastYearRound.round5.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round5.substr(2, 10) : "";
                var lr6 = row.lastYearRound.round6.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round6.substr(2, 10) : "";
                var lr7 = row.lastYearRound.round7.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round7.substr(2, 10) : "";
                var lr8 = row.lastYearRound.round8.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round8.substr(2, 10) : "";
                var lr9 = row.lastYearRound.round9.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round9.substr(2, 10) : "";
                var lr10 = row.lastYearRound.round10.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round10.substr(2, 10) : "";
                var lr11 = row.lastYearRound.round11.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round11.substr(2, 10) : "";
                var lr12 = row.lastYearRound.round12.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round12.substr(2, 10) : "";
                var lr13 = row.lastYearRound.round13.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round13.substr(2, 10) : "";
                var lr14 = row.lastYearRound.round14.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round14.substr(2, 10) : "";
                var lr15 = row.lastYearRound.round15.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round15.substr(2, 10) : "";
                var lr16 = row.lastYearRound.round16.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round16.substr(2, 10) : "";
                var lr17 = row.lastYearRound.round17.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round17.substr(2, 10) : "";
                var lr18 = row.lastYearRound.round18.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round18.substr(2, 10) : "";
                var lr19 = row.lastYearRound.round19.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round19.substr(2, 10) : "";
                var lr20 = row.lastYearRound.round20.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round20.substr(2, 10) : "";
                var lr21 = row.lastYearRound.round21.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round21.substr(2, 10) : "";
                var lr22 = row.lastYearRound.round22.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round22.substr(2, 10) : "";
                var lr23 = row.lastYearRound.round23.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round23.substr(2, 10) : "";
                var lr24 = row.lastYearRound.round24.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round24.substr(2, 10) : "";
                var lr25 = row.lastYearRound.round25.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round25.substr(2, 10) : "";
                var lr26 = row.lastYearRound.round26.substr(0, 1) !== "0" ? "pulp" + row.lastYearRound.round26.substr(2, 10) : "";

                var classDate = "" + r1 + " " + r2 + " " + r3 + " " + r4 + " " + r5 + " " + r6 + " " + r7 + " " + r8 + " " + r9 + " " + r10 + " " + r11 + " " + r12 + " " + r13 + " " + r14 + " " + r15 + " " + r16 + " " + r17 + " " + r18 + " " + r19 + " " + r20 + " " + r21 + " " + r22 + " " + r23 + " " + r24 + " " + r25 + " " + r26 + " " +
                    lr1 + " " + lr2 + " " + lr3 + " " + lr4 + " " + lr5 + " " + lr6 + " " + lr7 + " " + lr8 + " " + lr9 + " " + lr10 + " " + lr11 + " " + lr12 + " " + lr13 + " " + lr14 + " " + lr15 + " " + lr16 + " " + lr17 + " " + lr18 + " " + lr19 + " " + lr20 + " " + lr21 + " " + lr22 + " " + lr23 + " " + lr24 + " " + lr25 + " " + lr26 + "";
                return classDate;              
                        

            }
  
}
 /*
   * getRoundEle
   * 轮次表格的元素生成
   * */
window.getRoundEle = function(value, row, index, lr, r) {
     var html = "<i " +
        "" + (lr.substr(0, 1) === "0" ? "" : "onmouseover='mouseoverRoundToast(this,\"" + lr + "\")'") + " " +
        "" + (lr.substr(0, 1) !== "0" ? "onmouseout='mouseoutRoundToast(this)'" : "" ) + " " +
        "" + (lr.substr(0, 1) === "5" ? "onclick='openUnqualifiedAndNoPulp(\"" + lr.substr(2, 10) + "\",this,\"" + row.cardId + "\")'" :
            "" + (lr.substr(0, 1) === "4" ? "onclick='openStep5AndClinical(\"" + lr.substr(2, 10) + "\",this,\"" + row.cardId + "\")'" :
            (lr.substr(0, 1) === "3" ? "onclick='openStep5Link(\"" + lr.substr(2, 10) + "\",this,\"" + row.cardId + "\")'" :
                (lr.substr(0, 1) === "2" ? "onclick='openClinicalResponse(\"" + lr.substr(2, 10) + "\",this,\"" + row.cardId + "\")'" :
                    (lr.substr(0, 1) === "1" ? "onclick='GetSameDayInAllPulp(\"" + lr.substr(2, 10) + "\",this)'" : ""))))) + " " +
        "" + (lr.substr(0, 1) === "1" ? "style='background: #03E590'" : ((lr.substr(0, 1) === "2" || lr.substr(0, 1) === "4") ? "style='background: red'" : (lr.substr(0, 1) === "3" ? "style='background: #F8AC2C'" : (lr.substr(0, 1) === "5" ? "style='background: #cc02ff'" : "")))) + " data-index='" + value.substr(0, 1) + "' data-row='" + madeClassDate(row) + "' class='pulp-name-class' ></i>" +
        "<i " +
        "" + (r.substr(0, 1) === "0" ? "" : "onmouseover='mouseoverRoundToast(this,\"" + r + "\")'") + " " +
        "" + (r.substr(0, 1) !== "0" ? "onmouseout='mouseoutRoundToast(this)'" : "" ) + " " +
        "" + (r.substr(0, 1) === "5" ? "onclick='openUnqualifiedAndNoPulp(\"" + r.substr(2, 10) + "\",this,\"" + row.cardId + "\")'" :
            "" + (r.substr(0, 1) === "4" ? "onclick='openStep5AndClinical(\"" + r.substr(2, 10) + "\",this,\"" + row.cardId + "\")'" :
            (r.substr(0, 1) === "3" ? "onclick='openStep5Link(\"" + r.substr(2, 10) + "\",this,\"" + row.cardId + "\")'" :
                (r.substr(0, 1) === "2" ? "onclick='openClinicalResponse(\"" + r.substr(2, 10) + "\",this,\"" + row.cardId + "\")'" :
                    (r.substr(0, 1) === "1" ? "onclick='GetSameDayInAllPulp(\"" + r.substr(2, 10) + "\",this)'" : ""))))) + " " +
        "" + (r.substr(0, 1) === "1" ? "style='background: #06B7E5'" : ((r.substr(0, 1) === "2" || r.substr(0, 1) === "4") ? "style='background: red'" : ((r.substr(0, 1) === "3" ? "style='background: #F8AC2C'" : (r.substr(0, 1) === "5" ? "style='background: #cc02ff'" : ""))))) + "  class='pulp-name-class' ></i>" +
        "<span class='placehold-communication cursor' style='left:-30px;'></span>";
    return html;
    }
/*
* mouseoverRoundToast
* 移动到上面显示小标题 轮次
* */
window.mouseoverRoundToast =  function(event, value) {
    var index = value.substr(0, 1);
     var   text = value.substr(value.indexOf(":") + 1);
     var date = value.substr(value.indexOf("2"), 10);
    if (event.parentNode.parentNode === event.parentNode.parentNode.parentNode.children[0]) {
        if (date.substr(0, 4) === "2018") {
            event.parentNode.querySelector(".placehold-communication").style.top = "55px";
        } else if (date.substr(0, 4) === "2017") {
            event.parentNode.querySelector(".placehold-communication").style.top = "55px";
        }
    } else {
        if (date.substr(0, 4) === "2018") {
            event.parentNode.querySelector(".placehold-communication").style.top = "-28px";
        } else if (date.substr(0, 4) === "2017") {
            
            event.parentNode.querySelector(".placehold-communication").style.top = "-38px";
        }
    }

    if (date.substr(5, 2) === "12" && text.length > 10) {
        event.parentNode.querySelector(".placehold-communication").style.left = "-93px";
    } else if (date.substr(5, 2) === "12" && text.length === 10) {
        event.parentNode.querySelector(".placehold-communication").style.left = "-65px";
    } else if (date.substr(5, 2) !== "12" && text.length > 10) {
        event.parentNode.querySelector(".placehold-communication").style.left = "-45px";
    } else if (date.substr(5, 2) !== "12" && text.length === 10) {
        event.parentNode.querySelector(".placehold-communication").style.top = "55px";
        event.parentNode.querySelector(".placehold-communication").style.left = "-30px";
    }

    event.parentNode.querySelector(".placehold-communication").style.width = text.length > 10 ? "130px" : "90px";
    event.parentNode.querySelector(".placehold-communication").style.display = "block";
    event.parentNode.querySelector(".placehold-communication").innerText = text;
}
window.mouseoutRoundToast = function(event) {
    event.parentNode.querySelector(".placehold-communication").style.display = "none";
    event.parentNode.querySelector(".placehold-communication").innerText = "";
}
/*
* openUnqualifiedAndNoPulp
* 打开不合格浆员
* */
window.openUnqualifiedAndNoPulp = function(date, event, cardID) {
    //打开不合格浆员
    $("#popup").css({
        display: "block",
        width: "800px"
    });
    GetSameDayInAllPulp(date, event);
    autoCenter($("#popup"));
    getUnqualifiedAndNoPulp(date, cardID, function (item) {
        initUnqualifiedAndNoPulp(item);
    });
}
/*
* openStep5AndClinical
* 打开五步链接与临床反应
* */
window.openStep5AndClinical = function(date, event, cardID) {
    $("#popup,#popup1").css({
        display: "block",
        width: "800px"
    });
    autoCenter($("#popup,#popup1"));
    GetSameDayInAllPulp(date, event);
    getClinicalDetail(date, cardID, function (item) {
        initClinicalPopup(item);
    });
    getStep5LinkDetail(date, cardID, function (item) {
        initStep5LinkPopup(item);
    });
}
/*
* openStep5Link
* 打开五步链接
* */
window.openStep5Link  =function(date, event, cardID) {
    $("#popup1").css({
        display: "block",
        width: "800px"
    });
    autoCenter($("#popup1"));
    GetSameDayInAllPulp(date, event);
    getStep5LinkDetail(date, cardID, function (item) {
        initStep5LinkPopup(item);
    });
}

/*
* openClinicalResponse
* 打开临床反应
* */
window.openClinicalResponse =function(date, event, cardID) {
    $("#popup").css({
        display: "block",
        width: "800px"
    });
    GetSameDayInAllPulp(date, event);//圈出同一天的人员
    autoCenter($("#popup"));
    getClinicalDetail(date, cardID, function (item) {
        initClinicalPopup(item);
    });
}
/*
* autoCenter
* 自动居中对话框
* */
window.autoCenter = function(el) {
    var bodyW = $(window).width();
    var bodyH = $(window).height();
    var elW = el.width();
    var elH = el.height();
    el.css({"left": (bodyW - elW) / 2 + 'px', "top": (bodyH - elH) / 2 + 'px'});
}
/**
 * 进行定时任务的加工
 */
 window.triggerLoading = function(){
    setTimeout("alertMsgAndCloseLoading()",15000);
 }
 window.alertMsgAndCloseLoading = function(){
    if( window.self.loading){
        alert("数据加载超时....");
      window.self.loading = false;
     }
    if(window.self.dialogGanT.tableBootomLoading){
         alert("数据加载超时....");
         window.self.dialogGanT.tableBootomLoading = false;
     }
 }
/*
* GetSameDayInAllPulp
* 圈出同一天献浆的人
* */
var lastDate = "123";
var lastBgColor = "red";
var shareTitle= null;
window.GetSameDayInAllPulp =function(date, event) {
    $("#table .pulp-name-class.active").css("background", lastBgColor).removeClass("active");
    lastBgColor = event.style.background;
    event.className = "177";
    event.style.background = "rgba(212, 53, 27, 0.6)";

    $("#table ." + lastDate).css("background", "");
    $("#table ." + lastDate).css("color", "");
    $("#table .pulp" + date).css("background", "rgba(212, 53, 27, 0.6)");
    $("#table .pulp" + date).css("color", "white");

    var length = document.querySelectorAll("#table .pulp" + date).length;
    var title;
    if(shareTitle==null){
        shareTitle  = $("h1").text();
    }
     title = shareTitle+"  日期\n"+date + "（" + length + " 人）";
     $("h1").text(title); 
    lastDate = "pulp" + date;
}

//获取当前时间，格式YYYY-MM-DD
window.getNowFormatDate =function () {
    var date = new Date();
    var seperator1 = "-";
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var currentdate = year + seperator1 + month + seperator1 + strDate + " 00:00:00";
    return currentdate;
}

//比较日期大小
window.compareDate =function(date1, date2) {
    var date1 = new Date(date1);
    var date2 = new Date(date2);
    if (date1.getTime() >= date2.getTime()) {
        return true;
    } else {
        return false;
    }
}

window.getUpAndNextDayByType = function(date,type){
    var curDate = new Date();
    var tempDate;
    if(type==1){
        //up
      tempDate = new Date(date.getTime() - 24*60*60*1000); //前一天
    }else{
        //next
      tempDate = new Date(date.getTime() + 24*60*60*1000); //后一天
    }
    return tempDate;
}

export default obj;
</script>
<style lang="stylus" scoped>
.mapContent 
  position relative
  .search 
    position absolute 
    top -20px
    left 60px
    z-index 1
  #chart
    position absolute
    top 0
    left 0
    width 100%
    height 100%
    z-index 0
</style>

 
 <style type="text/css" media="all">
    .cursor{
      cursor:pointer;
    }
    .cursor:hover{
      color:floralwhite;
      background-color:#436EEE;
    }
.table td > .placehold-communication,
.table td > div > .placehold-communication {
    display: none;
    width: 90px;
    position: absolute;
    left: 0px;
    top: 24px;
    color: #000;
    font-size: 13px;
    border: 1px solid rgba(51, 51, 51, 0.33);
    padding: 5px;
    line-height: 16px;
    background: #FFF;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-shadow: 0px 0px 15px 1px rgba(0, 0, 0, .55);
    -moz-box-shadow: 0px 0px 15px 1px rgba(0, 0, 0, .55);
    box-shadow: 0px 0px 15px 1px rgba(0, 0, 0, 0.55);
    border-radius: 7px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    z-index: 666;
    
}
.pulp-name-class{
    width:100%;
    height:13px;
    display:block;
    cursor:pointer;
    margin-bottom:2px;
}
.el-dialog__body{
    color:black !important;
}
.select_type_class{
    position: absolute;
    left:40%;
    top:5px;
    z-index:999;
}
h1{
    font-size:17px !important;
    font-weight:blod;
    position: absolute;
    left:20px;
    top:25px;
    }
 </style>

